Pluralsight Advanced Techniques in JavaScript and jQuery
Stop breaking legacy code every time you expand your functions. Learn how to create robust functions that handle the needs of current, legacy, and future processing. Learn about handling DOM events with jQuery, then learn how to create your own custom events for objects that aren't on the DOM. Also, learn how to make use of the jQuery Deferred object to truly process AJAX requests in an asynchronous manner.
Introduction | 00:44:51 |
| Introduction | 00:10 |
| Outline | 00:46 |
| Traditional JavaScript Functions | 08:17 |
| Draw Version 1 | 05:31 |
| Extending Draw - Two Parameters | 02:04 |
| Draw - Four Parameters | 02:34 |
| Draw - Six Parameters | 03:11 |
| Stub Functions | 04:49 |
| Default Parameters | 03:39 |
| All Default Values | 01:33 |
| Changing to an Object Parameter | 03:52 |
| Legacy Support with Object | 02:54 |
| Default Values in an Object | 04:47 |
| Function Summary | 00:44 |
Event Handling | 00:45:20 |
| Introduction | 00:08 |
| Outline | 00:54 |
| Shorthand Methods | 06:28 |
| Message Function | 06:02 |
| More Elements | 11:02 |
| Propagation | 14:46 |
| No Shorthand | 05:15 |
| Summary | 00:45 |
Advanced Event Handling | 00:43:33 |
| Introduction | 00:11 |
| Outline | 00:31 |
| Event Handler Methods | 08:58 |
| Named Functions | 04:19 |
| Namespace | 04:37 |
| Delegation | 03:06 |
| Custom Events | 11:35 |
| Event Parameters | 09:10 |
| Summary | 01:06 |
Using jQuery Deferred Objects | 01:02:54 |
| Introduction | 00:09 |
| Outline | 00:31 |
| Promise | 01:01 |
| Traditional AJAX Processing | 00:44 |
| Layout | 02:24 |
| Section 1 Content | 02:33 |
| Loading All Content | 02:34 |
| Common Pattern | 02:18 |
| Deferred Object | 05:03 |
| LoadSection Function | 02:12 |
| Negative Testing | 06:10 |
| Deferred Methods | 10:42 |
| Dynamic Pages | 02:00 |
| Creating a Deferred Object | 07:34 |
| Using Deferred Objects | 15:42 |
| Summary | 01:17 |
Introduction
Advanced Event Handling
Using jQuery Deferred Objects